import request from '@/utils/request'

export function tbDictDetailQuery(data) {
  //查询
  return request({
    method: 'get',
    url: 'tbSysDictDetail/query',
    params: data,
  })
}

export function tbDictDetailAdd(data) {
  //新增
  return request({
    method: 'post',
    url: 'tbSysDictDetail/add',
    data,
  })
}

export function tbDictDetailUpdate(data) {
  //编辑
  return request({
    method: 'post',
    url: 'tbSysDictDetail/update',
    data,
  })
}

export function tbDictDetailDelete(data) {
  //删除
  return request({
    method: 'get',
    url: '/tbSysDictDetail/delete/' + data,
  })
}

export function tbDictDetailQueryByCode(code) {
  //通过code查询枚举子集
  return request({
    method: 'get',
    url: 'tbSysDictDetail/queryByCode/' + code,
  })
}

export function tbDictDetailOpenApiQueryByCode(code) {
  //通过code查询枚举子集
  return request({
    method: 'get',
    url: 'tbSysDictDetail/openApi/queryByCode/' + code,
  })
}
